package com.ruoyi.erecord.iot.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IotDemoController {
    final Logger logger = LoggerFactory.getLogger(IotDemoController.class);
    // @Resource
    // CommonMapper mapper;

    @GetMapping("/")
    public String info() {
        logger.info("ok,i'am running");
        return "ok,i'am running";
    }

    // @GetMapping(value = "/hello", name = "返回Hello World")
    // public String hello() {
    //
    //
    //     return JSON.toJSONString(mapper.getDeviceCode());
    // }
}
